package vn.com.aptech.msh.utils;

import java.io.Serializable;
import javax.ejb.*;
import javax.inject.*;
import javax.enterprise.inject.*;
import vn.com.aptech.msh.business.IEnquiryBean;
import vn.com.aptech.msh.business.IEstateBean;
import vn.com.aptech.msh.business.IFAQBean;
import vn.com.aptech.msh.business.IUserBean;

/**
 *
 * @author trietto
 */
public class EJBHelper implements Serializable {

    @EJB(lookup = "java:global/MySweetHome/MySweetHome-ejb/UserBean")
    @Produces
    @Named("userBusiness")
    IUserBean userBusiness;

    @EJB(lookup = "java:global/MySweetHome/MySweetHome-ejb/FAQBean")
    @Produces
    @Named("faqBusiness")
    IFAQBean faqBusiness;

    @EJB(lookup = "java:global/MySweetHome/MySweetHome-ejb/EstateBean")
    @Produces
    @Named("estateBusiness")
    IEstateBean estateBusiness;

    @EJB(lookup = "java:global/MySweetHome/MySweetHome-ejb/EnquiryBean")
    @Produces
    @Named("enquiryBusiness")
    IEnquiryBean enquiryBusiness;
}
